﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/SacNetUG.Master" Inherits="System.Web.Mvc.ViewPage<SacNetUG.Models.RsvpViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Rsvp
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        Rsvp</h2>
    <%using (Html.BeginForm())
      {%>
        <%: Html.HiddenFor(model=>model.EventId) %>
        <%if (ViewData.ContainsKey("Unavailable")){%>
            <div><%=ViewData["Unavailable"]%></div>
        <%}
          else
          {%>
            <table>
                <tr>
                    <td>
                        Event:
                    </td>
                    <td>
                        <%=Model.Event.Name %>
                    </td>
                </tr>
                <tr>
                    <td>
                        Action:
                    </td>
                    <td>
                        <%=Html.DropDownList("willAttend", Model.Responses) %>
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td>
                        <input type="submit" value="submit" />
                    </td>
                </tr>
            </table>
        <%}
    }%>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="head" runat="server">
</asp:Content>
